Make PackageId cheap to clone
authorAlex Crichton <alex@alexcrichton.com>
Fri, 17 Oct 2014 18:47:33 +0000 (11:47 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 22 Oct 2014 18:29:52 +0000 (11:29 -0700)
commit08c7d6133df64d97dc7b4433e7afc7c7b8f70af5
tree9f8d63c2ba3214a1dde37f928b237b6365fcec6c
parent5851827379a4bf32caf43af3ad8505c3d18b133c
Make PackageId cheap to clone

These are cloned a massive number of times during resolution, so let's make them
much cheaper to clone with an Arc. This uses Arc instead of Rc because the
fiddly bits in job_queue have a PackageId cross task boundaries for parallelism.
src/cargo/core/package_id.rs